package com.wmh.baseservice.skd.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 佣金和达量奖结算表
 * @TableName skd_commissions_and_rewards
 */
@Data
@Accessors(chain = true)
@TableName(value ="skd_commissions_and_rewards")
public class SkdCommissionsAndRewards implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id" ,type = IdType.AUTO)
    private Long id;

    /**
     * 关联的拼团活动ID
     */
    @TableField(value = "activity_id")
    private Long activityId;

    /**
     * 团长id
     */
    @TableField(value = "leader_id")
    private Long leaderId;

    /**
     * 团员id
     */
    @TableField(value = "member_id")
    private Long memberId;

    /**
     * 总金额
     */
    @TableField(value = "total_amount")
    private BigDecimal totalAmount;

    /**
     * 获得的佣金
     */
    @TableField(value = "commission_earned")
    private BigDecimal commissionEarned;

    /**
     * 获得的达量奖
     */
    @TableField(value = "volume_reward_earned")
    private BigDecimal volumeRewardEarned;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}